<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Models\Admin\AdminMenusModel;
use Cache;
class ModelEventServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        AdminMenusModel::saving(function () {
            Cache::forget('admin_menus');
        });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
